import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 列表查询 /vsRetailOrder/searchVinForOrderAudit
export const queryList = (params) => axios.get(`${SERVER.RETAIL}/vsRetailOrderArcfox/searchVinForOrderAudit`, {
  params
})

// 零售订单维护	根据id查询详情	retail	 /vsRetailOrder/searchRetailOrderById?id=4	get
export const queryRetailOrderById = (Id) => axios.get(`${SERVER.RETAIL}/vsRetailOrderArcfox/searchRetailOrderById?id=${Id}`);

// 零售订单维护	查询潜客	clue	 /customerOldIntentLevel/potentialCustomerNameAndPhone 	get
export const queryPotentialCustomer = (params) => axios.get(`${SERVER.CYXDMS_CLUE}/customerOldIntentLevel/potentialCustomerNameAndPhone`, {
  params
});

// 零售订单维护	查询销售顾问	sysmanage	 /employeeNew/getEmployees	get
export const getEmployees = (params) => axios.get(`${SERVER.SYSMANAGE}/employeeNew/getEmployees`, {
  params
});

// 零售订单维护	查询车	retail	 /vsRetailOrder/searchVinForOrder?colorId=12&currentPage=1&modelId=1&optionId=1&packageId=1&pageSize=10&productId=3&seriesId=1&trimColorId=76&vin=185	get
export const queryVinForOrder = (params) => axios.get(`${SERVER.RETAIL}/vsRetailOrder/searchVinForOrder`, {
  params
});

// 审核 /vsRetailOrder/auditRetailOrder

export const auditRetailOrder = (params) => axios.post(`${SERVER.RETAIL}/vsRetailOrderArcfox/auditRetailOrder`, params)
